﻿using FarmExe.FarmSubClass;
using FarmExe.IFactory;
using System;
using System.Collections.Generic;
using System.Text;

namespace FarmExe.SFarm
{
    public class SRfarm : IFarm
    {
        public IAnimal NewAnimal()
        {
            //throw new NotImplementedException();
            Console.WriteLine("马食夜草而长");
            return new Horse();

        }

        public IPlant NewPlant()
        {
            //throw new NotImplementedException();
            Console.WriteLine("果自树而落于地");
            return new Fruitage();
        }
    }
}
